import { constantRoutes } from '@/router'

export default {
  namespaced: true,
  state: {
    routes: constantRoutes
  },
  mutations: {
    setRouter(state, payload) {
      state.routes = [...constantRoutes, ...payload]
    }
  }
}
